package com.origin.oss.specification.domain.multipart.request;

import com.origin.oss.specification.domain.multipart.MultipartFileWrap;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author origin
 */
@Schema(name = "切片上传相关参数")
@Data
public class SliceUploadReq {

    private int chunkNumber;

    private long chunkSize;

    private int totalChunks;

    private String identifier;

    private long totalSize;

    private long currentChunkSize;

    private MultipartFileWrap file;

    public void setFile(MultipartFile multipartFile) {
        this.file = new MultipartFileWrap(multipartFile);
    }

}
